package com.csdj.springcloudt309.order.service;

import com.csdj.spingcloudt309.common.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "order",fallback = UserServiceFallback.class)
@Component
public interface UserService {

    @GetMapping("/user/info/{id}")
    public User getInfo(@PathVariable("id")int id);
}
